package org.iabako.shared.entity.enumeration;

import org.iabako.client.tools.Messages;

/**
 * Created by jose on 03/09/14.
 */
public enum FinancialStatusSale implements ImageEnum {

    _0_draft("", "sale_status_draft_title", "statusdraft"),
    _1_inDebt("", "sale_status_in_debt_title", "statusKO"),
    _2_withFutureInstallments("", "sale_status_with_future_installments_title", "statuswithfutureinstallments"),
    _3_OK("", "sale_status_ok_title", "statusOK"),

    //For quotes
    _0_quote_draft("", "quote_status_draft_title", "statusdraft"),
    _1_quote_generated("", "quote_status_generated_title", "statusquotegenerated"),
    _2_quote_transformed("", "quote_status_transformed_title", "statusquotetransformed"),
    _3_quote_discard("", "quote_status_discard_title", "statusquotediscard");

    String labelKey;
    String titleKey;
    String className;

    private FinancialStatusSale(String labelKey, String titleKey, String className) {
        this.labelKey = labelKey;
        this.titleKey = titleKey;
        this.className = className;
    }

    public String getLabel() {
        return Messages.getLabel(labelKey);
    }

    public String getClassName() {
        return className;
    }

    public String getTitle() {
        return Messages.getLabel(titleKey);
    }

    public String getTitleKey() {
        return titleKey;
    }

    public String getLabelKey() {
        return labelKey;
    }
}
